﻿using System;

namespace Pitaya_IDE
{
    /// <summary>
    /// Char and style
    /// </summary>
    public struct Char
    {
        /// <summary>
        /// Unicode character
        /// Unicode字符
        /// </summary>
        public char c;
        /// <summary>
        /// Style bit mask
        /// 样式位掩码
        /// </summary>
        /// <remarks>
        /// Bit 1 in position n means that this char will rendering by FastColoredTextBox.Styles[n]
        /// 位置n中的位1表示该字符将由FastColoredTextBox.Styles[n]进行渲染
        /// </remarks>
        public StyleIndex style;


        public Char(char c)
        {
            this.c = c;
            style = StyleIndex.None; 
        }
    }
}
